package com.jsb.laundry.service.impl;

import com.jsb.laundry.common.design_service.pay.enums.PayModeEnum;
import com.jsb.laundry.dao.ActivityDao;
import com.jsb.laundry.dao.OrderDao;
import com.jsb.laundry.model.entity.*;
import com.jsb.laundry.service.ActivityService;
import com.jsb.laundry.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;
import java.util.List;

@Service
public class ActivityServiceImpl implements ActivityService {

    @Resource
    private ActivityDao activityDao;

    @Resource
    private OrderDao orderDao;

    @Resource
    private OrderService orderService;

    @Override
    public int useSchoolCard(ActivityDetail data) {
        //把校服卡券状态更改为已使用
        int ok = activityDao.updUseSchoolCard(data);

        return ok;
    }
}
